<template>
  <navbar>
    <div class="navbar__left">
      <div
        class="btn"
        @click="close">
        <fa-icon
          class="block"
          icon="chevron-left"/>
      </div>
    </div>
    <div class="title"><slot/></div>
    <div class="navbar__right"/>
  </navbar>
</template>

<style lang="scss" scoped>
  .title {
    font-size: 36px;
    color: #343434;
  }

  .btn {
    display: block;
    font-size: 42px;
    color: #B3B3B3;
    padding: 16px;
  }

  .navbar__right, .navbar__left {
    width: 100px;
  }
</style>

<script>
import Navbar from '@/components/Navbar'

export default {
  components: {
    Navbar
  },
  methods: {
    close () {
      this.$router.back()
    }
  }
}
</script>
